package com.example.jetpacktest

import android.app.Application
import androidx.room.Room
import com.example.jetpacktest.room.AppDataBase

class MyApplication: Application() {

    override fun onCreate() {
        super.onCreate()
        db = Room.databaseBuilder(this, AppDataBase::class.java, "test001DB").build()
    }

    companion object{
        private lateinit var db: AppDataBase

        fun getDBInstance(): AppDataBase{
            return db
        }
    }



}